<?php

require_once PHP_UI_PATH . DS . 'Constraint.php';

class TimestampConstraint implements Constraint {

    public function getConstraintClass() {
        return "time-stamp";
    }

    public function render() {
        $timestamp = date("d-m-Y");
        return "$('.time-stamp').val('$timestamp');";
    }

}

?>
